package com.dudu.service.impl;

import java.util.List;

import com.dudu.bean.ParamBean;
import com.dudu.service.IIsvService;
import com.dudu.service.IOperationPlatformService;

/**
 * ISV service 需要调用运营平台
 * 
 * @author gaoxs
 * 
 */
public class IsvServiceImpl implements IIsvService {
	// 运营平台相关操作
	private IOperationPlatformService operationPlatformService = new OperationPlatformServiceImpl();
	/**
	 * 根据ISV_ID查询ISV名称
	 * 
	 * @param isv_id
	 * @return
	 */
	public String queryIsvNameById(String isv_id) {
		List<ParamBean> list = this.queryIsvItems(isv_id, null, null, null);
		if (list.size() > 0) {
			return list.get(0).getText();
		} else {
			return "";
		}
	}

	/**
	 * 查询ISV 分页
	 * 
	 * @param isv_id
	 * @param isv_name
	 * @param page_no
	 *            页码
	 * @param page_size
	 *            每页显示数据数量
	 * @return
	 */
	public List<ParamBean> queryIsvItems(String isv_id, String isv_name,Integer page_no, Integer page_size) {
		return operationPlatformService.queryIsvItems(isv_id, isv_name, page_no, page_size);
	}
	public static void main(String[] args) {
		IsvServiceImpl s=new IsvServiceImpl();
		s.queryIsvItems(null, null, null, null);
	}
}
